#include "fsm_switch.h"
#include <iostream>

int main() {
    Switch sw0("switch0");
    Switch sw1("switch1");

    sw0.start();
    sw1.start();

    char c;

    while (true) {
        std::cin >> c;
        switch (c) {
            case '0':
                sw0.dispatch(sw0.toggle);
                break;

            case '1':
                sw1.dispatch(sw1.toggle);
                break;

            case 'q':
                return 0;

            default:
                std::cout << "illegal input\n";
                break;
        }
    }





    return 0;
}
